Skip to content

Zend: remove Z_PARAM_FUNC_OR_NULL_WITH_ZVAL() - #23234

Merged
Girgias merged 1 commit into
php:masterfrom
Girgias:2026-08-unused-fast-zpp
Aug 12, 2026
Merged

Zend: remove Z_PARAM_FUNC_OR_NULL_WITH_ZVAL()#23234
Girgias merged 1 commit into
php:masterfrom
Girgias:2026-08-unused-fast-zpp

Conversation

@Girgias

@Girgias Girgias commented Aug 12, 2026

Copy link
Copy Markdown
Member

And related Z_PARAM_GET_PREV_ZVAL()

These were introduced in 1179622 to simplify memory management.

But this is no longer relevant (well never was as one could have grabbed the zval from the FCI) since the refactoring to only use FCCs in 0e5d654

The following SourceGraph searches confirm there is no usage:

And related Z_PARAM_GET_PREV_ZVAL()

These were introduced in php@1179622 to simplify memory management.

But this is no longer relevant (well never was as one could have grabbed the zval from the FCI) since the refactoring to only use FCCs in php@0e5d654

The following SourceGraph searches confirm there is no usage:
- https://sourcegraph.com/search?q=context:global+Z_PARAM_FUNC_OR_NULL_WITH_ZVAL&patternType=keyword&sm=0
- https://sourcegraph.com/search?q=context:global+Z_PARAM_GET_PREV_ZVAL&patternType=keyword&sm=0

@DanielEScherzer DanielEScherzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me, should include UPGRADING.INTERNALS for any private uses

@Girgias
Girgias merged commit 3f26310 into php:master Aug 12, 2026
18 checks passed
@Girgias
Girgias deleted the 2026-08-unused-fast-zpp branch August 12, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants